//
// Created by Yun on 2025/2/26.
//

#ifndef FRMAEWORK_DEMO_GPIO_BSP_TIM_H
#define FRMAEWORK_DEMO_GPIO_BSP_TIM_H

#include "bsp_common_type.h"
#include "tim_interface.h"


typedef struct Tim_Hw_Cfg{
    TIM_HandleTypeDef stHTim;
    pfNVIC_Callback_TypeDef pfTimCallback;
    // 中断相关配置
    uint8_t u8ITPriority;
    uint8_t u8ITSubPriority;
} Tim_Hw_Cfg_TypeDef;


uint8_t Bsp_Tim_Init(void* pTimHwCfg, pfNVIC_Callback_TypeDef pfTimCallback);
uint8_t Bsp_Tim_Enable(void* pTimHwCfg,uint8_t u8State);

extern Tim_Interface_TypeDef stBspTimInterface;

#endif //FRMAEWORK_DEMO_GPIO_BSP_TIM_H
